<?php 
class product_plugin_update extends abstract_product_plugin {
    
    public function viewed($product_id) {

        $query = $this->pdo->prepare("UPDATE " . $this->db_prefix . "product SET 
            viewed = (viewed + 1) 
            WHERE product_id = :product_id");

        return $query->execute(array(":product_id" => $product_id));

	}
}
